import request from '@/utils/request'

export const testAPI = async () => {
  return request({
    url: '/home/swiper'
  })
}

export const LoginAPI = async ({ username, password }) => {
  return request({
    url: '/user/login',
    method: 'POST',
    data: {
      username, password
    }
  })
}

export const cityAll = () => {
  return request({
    url: '/area/city',
    params: {
      level: 1
    }
  })
}
// "AREA|b4e8be1a-2de2-e039"

export const houseAPI = () => {
  return request({
    url: '/houses',
    params: {
      cityId: 'AREA|b4e8be1a-2de2-e039'
    }
  })
}
